package org.cnbi.entity;

import java.io.Serializable;
import java.util.List;

import org.codehaus.jackson.map.annotate.JsonSerialize;
/**
 * @author zhh
 * @date 2014/5/12/ 16:20
 * 
 * 科目
 * **/
public class Kemu implements Serializable {

	private static final long serialVersionUID = 1L;

	private String scode;
	
	private String spcode;
	
	private String sname;
	
	private String stype;
	
	private int nlevel;
	
	private int nassist;
	
	@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
	private List<Kemu> children;

	
	/**
	 * @return the children
	 */
	public List<Kemu> getChildren() {
		return children;
	}

	/**
	 * @param children the children to set
	 */
	public void setChildren(List<Kemu> children) {
		this.children = children;
	}

	/**
	 * 
	 */
	public Kemu() {
		super();
	}

	/**
	 * @param scode
	 * @param spcode
	 * @param sname
	 * @param nlevel
	 */
	public Kemu(String scode, String spcode, String sname, int nlevel) {
		super();
		this.scode = scode;
		this.spcode = spcode;
		this.sname = sname;
		this.nlevel = nlevel;
	}

	
	/**
	 * @return the stype
	 */
	public String getStype() {
		return stype;
	}

	/**
	 * @param stype the stype to set
	 */
	public void setStype(String stype) {
		this.stype = stype;
	}

	/**
	 * @return the scode
	 */
	public String getScode() {
		return scode;
	}

	/**
	 * @param scode the scode to set
	 */
	public void setScode(String scode) {
		this.scode = scode;
	}

	/**
	 * @return the spcode
	 */
	public String getSpcode() {
		return spcode;
	}

	/**
	 * @param spcode the spcode to set
	 */
	public void setSpcode(String spcode) {
		this.spcode = spcode;
	}

	/**
	 * @return the sname
	 */
	public String getSname() {
		return sname;
	}

	/**
	 * @param sname the sname to set
	 */
	public void setSname(String sname) {
		this.sname = sname;
	}

	/**
	 * @return the nlevel
	 */
	public int getNlevel() {
		return nlevel;
	}

	/**
	 * @param nlevel the nlevel to set
	 */
	public void setNlevel(int nlevel) {
		this.nlevel = nlevel;
	}

	/**
	 * @return the nassist
	 */
	public int getNassist() {
		return nassist;
	}

	/**
	 * @param nassist the nassist to set
	 */
	public void setNassist(int nassist) {
		this.nassist = nassist;
	}

	
	
	
	
}
